<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>���IE6��pngͼƬ����</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
html,body { 
	/* Default Font */
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10pt;
}
</style>

</head>

<body>
<P></P>
<P>1、unitpngfix.js文件 
<P>var clear="images/clear.gif"; //pathto 
clear.gif</P>&lt;P&gt;document.write('&lt;scripttype="text/javascript"id="ct"defer="defer"src="javascript:void(0)"&gt;&lt;\/script&gt;');varct=document.getElementById("ct");ct.onreadystatechange=function(){pngfix()};pngfix=function(){varels=document.getElementsByTagName('*'),ip=/\.png/i,al="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='",i=els.length,uels=newArray(),c=0;while(i--&gt;0){if(els[i].className.match(/unitPng/)){uels[c]=els[i];c++;}}if(uels.length==0)pfx(els);elsepfx(uels);functionpfx(els){i=els.length;while(i--&gt;0){varel=els[i],es=el.style,elc=el.currentStyle,elb=elc.backgroundImage;if(el.src&amp;&amp;el.src.match(ip)&amp;&amp;!es.filter){es.height=el.height;es.width=el.width;es.filter=al+el.src+"',sizingMethod='crop')";el.src=clear;}else{if(elb.match(ip)){varpath=elb.split('"'),rep=(elc.backgroundRepeat=='no-repeat')?'crop':'scale',elkids=el.getElementsByTagName('*'),j=elkids.length;es.filter=al+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';if(j!=0){if(elc.position!="absolute")es.position='static';while(j--&gt;0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}};}; 

<P></P>
<P>2、clear.gif添加到images文件夹中：</P>
<P>1*1像素的gif空白图片</P>
<P>3、在head之间中加入：</P>
<P>&lt;!--[if lte IE 6]&gt;<BR>&lt;script type= "text/javascript" src= 
"unitpngfix.js"&gt;&lt;/script&gt;&lt;BR&gt; &lt;![endif]--&gt;&lt; /P&gt; &lt; 
P&gt; <BR></P></body>
</html>

